/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.comunicacion2.view;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author LangTecnologia
 */
public class CsvFilter extends FileFilter{
    
    @Override
    public boolean accept(File file){
        return file.getName().toLowerCase().endsWith(".csv") || file.isDirectory();
    }

    @Override
    public String getDescription(){
        return "Archivos csv (*.csv)";
    }
}
